﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS.Infrastructure.Dto.Common;

namespace WCS.Infrastructure.Dto.Request.Coupon
{
    /// <summary>
    /// 优惠券包关联表
    /// </summary>
    public class CouponPackageItemRequestDto:BaseRequestDto
    {
        /// <summary>
        /// 优惠券包关联ID
        /// </summary>
        [Key]
        [StringLength(32)]
        public string Id { get; set; } = null!;

        /// <summary>
        /// 关联优惠券包ID
        /// </summary>
        [StringLength(32)]
        public string PackageId { get; set; } = null!;

        /// <summary>
        /// 关联优惠券模板ID
        /// </summary>
        [StringLength(32)]
        public string TemplateId { get; set; } = null!;

        /// <summary>
        /// 每个用户可领取的数量（默认1）
        /// </summary>
        public int? Quantity { get; set; }

        /// <summary>
        /// 排序号（券包内优惠券的展示顺序，数字越小越靠前）
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime CreationTime { get; set; }


        ////////////////////////////////////////////////////////////////////////////////////////////////


        /// <summary>
        /// 优惠券模板编号
        /// </summary>
        public string? TemplateCode { get; set; }

        /// <summary>
        /// 优惠券名称
        /// </summary>
        public string? Name { get; set; }
    }
}
